using System;
using System.Globalization;
using System.Windows.Data;
using Microsoft.Phone.Controls.Maps;

namespace BingleMaps.Converters
{
	public class BoolToMapAnimationLevelConverter : IValueConverter
	{
		public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
		{
			return value.Equals(true) ? AnimationLevel.Full : AnimationLevel.None;
		}

		public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
		{
			throw new NotSupportedException();
		}
	}
}